package com.gitee.wsl.struct.grammar.lexer

import com.gitee.wsl.struct.grammar.ast.node.NodeType

interface GeneratedLexer {

    val tokenStart: Int

    val tokenEnd: Int

    fun reset(buffer: CharSequence, start: Int, end: Int, initialState: Int)

    fun advance(): NodeType?

    val state: Int
}